package com.benlai.newretail.dao.impl;

import com.benlai.newretail.dao.IMenuData;
import com.benlai.newretail.dao.mapper.MenuMapper;
import com.benlai.newretail.entity.Menu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * @author:gaoxu;
 * @Email:gaoxu@benlai.com
 * @DATE:2017-12-14
 * @version:ver1.0.0
 * @Description: Created by gaoxu on 2017-12-14.
 */

@Repository
public class MenuDataImpl implements IMenuData{

    @Autowired
    private MenuMapper menuMapper;

    /**
     * 通过主键获取Menu对象
     *
     * @param sysNo
     * @return
     */
    @Override
    public Menu getMenuBySysNo(Integer sysNo) {
        return menuMapper.getMenuBySysNo(sysNo);
    }
}
